package com.han.gift.common.exception;

import com.han.gift.common.exception.Erroenum.ErrorCode;

/**
 * @Author:Han
 * @Date :2023/2/27 16:27
 * @Description:
 */

public class BusinessException extends RuntimeException {

    int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message,int code) {
        super(message);
        this.code=code;
    }


    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }



    public BusinessException(Throwable cause) {
        super(cause);
    }

    protected BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
